\usepackage[utf8x]{inputenc}
%\usepackage{hyperref}
%\usepackage{memhfixc}

\usepackage[left=2cm,top=2cm,bottom=2.5cm,right=2cm,footskip=1cm]{geometry}

\usepackage[T1]{fontenc}
%\usepackage[urw-garamond]{mathdesign}
\usepackage[sc]{mathpazo}

\usepackage{graphicx}
\graphicspath{{./figures/}}

\usepackage{makeidx}
\makeindex

%\usepackage{setspace}


%\usepackage[scaled]{helvet}
\linespread{1.25}

%\normalfont % in case the EC fonts aren't available


\usepackage{parskip}
\setlength{\parskip}{0.3cm}
\usepackage{indentfirst}
\setlength{\parindent}{0.5cm}

%\usepackage{fancyhdr}
%\pagestyle{fancy}

\usepackage{listings}
\usepackage{color}
\usepackage{textcomp}
%\usepackage[scaled]{beramono}
\usepackage{courier}
\lstset{
    literate={â}{{\^{a}}}1
             {Â}{{\^{A}}}1
             {ç}{{\c{c}}}1
             {Ç}{{\c{C}}}1
             {ğ}{{\u{g}}}1
             {Ğ}{{\u{G}}}1
             {ı}{{\i}}1
             {İ}{{\.{I}}}1
             {ö}{{\"o}}1
             {Ö}{{\"O}}1
             {ş}{{\c{s}}}1
             {Ş}{{\c{S}}}1
             {ü}{{\"u}}1
             {Ü}{{\"U}}1
}
\lstnewenvironment{matlabcode}
{\SingleSpacing\lstset{
	tabsize=4,
	language=matlab,
    basicstyle=\small\ttfamily,
%    basicstyle=\ttfamily,
    upquote=true,
    aboveskip={1\baselineskip},
    columns=fixed,
    showstringspaces=false,
    extendedchars=true,
    breaklines=true,
    prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
    frame=top,
    frame=bottom,
    showtabs=false,
    showspaces=false,
    showstringspaces=false,
    identifierstyle=\ttfamily,
    keywordstyle=\color[rgb]{0,0,1},
    commentstyle=\color[rgb]{0.133,0.545,0.133},
    stringstyle=\color[rgb]{0.627,0.126,0.941},
    xleftmargin=5pt,
    xrightmargin=5pt,
    framexleftmargin=5pt,
    framexrightmargin=5pt,
    backgroundcolor=\color[rgb]{0.96,0.96,0.99},
}}
{}

\lstnewenvironment{matlabresult}
{\SingleSpacing\lstset{
	tabsize=4,
    basicstyle=\footnotesize\ttfamily\itshape\color[rgb]{0.2,0.2,0.2},
    upquote=true,
    aboveskip={0.1\baselineskip},
    columns=fixed,
    showstringspaces=false,
    extendedchars=true,
    breaklines=true,
    prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
    showtabs=false,
    showspaces=false,
    showstringspaces=false,
    xleftmargin=5pt,
    xrightmargin=5pt,
    framexleftmargin=5pt,
    framexrightmargin=5pt,
    backgroundcolor=\color[rgb]{0.88,0.88,0.88},
}}
{}

\renewcommand*{\lstlistingname}{Kod}

\renewcommand{\contentsname}{İçindekiler}
\renewcommand{\chaptername}{Bölüm}

\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\argmax}{\operatornamewithlimits{argmax}}

%\setcounter{tocdepth}{2}
\setsecnumdepth{subsection}


%\usepackage[Glenn]{fncychap}
%\ChNameVar{\bfseries\Large}
%\ChNumVar{\Huge}
%\ChTitleAsIs
%\ChTitleVar{\bfseries\Large}

\usepackage[Rejne]{fncychap}
\ChNameVar{\centering\large\bfseries}
\ChNumVar{\Huge}
\ChTitleVar{\centering\Large}
\ChNameUpperCase
\ChRuleWidth{1pt}
\ChTitleAsIs

%\makeheadrule{headings}{\textwidth}{0.3pt}
%
%\copypagestyle{fnsizeheadings}{headings}
%\makeevenhead{fnsizeheadings}{\thepage}{}{\footnotesize\slshape\leftmark}
%\makeoddhead{fnsizeheadings}{\rightmark}{}{\thepage}
